package com.ai.module.user.mapper;

import com.ai.module.user.domain.vo.UserRobotVo;
import com.ai.module.user.domain.entity.UserRobotEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRobotMapper extends BaseMapper<UserRobotEntity> {

//    @Select("select  ur.robot_name, ur.robot_type , ur.image_url, ur.uuid , um.file_path\n" +
//            "        from    user_robot ur\n" +
//            "        left join\n" +
//            "                user_image um on  ur.uuid= um.business_id\n" +
//            "                and um.source = 'ROBOT_BACKGROUND'  and ur.user_id = um.user_id \n" +
//            "        where\n" +
//            "          ur.user_id= #{userId}")
    List<UserRobotVo> findByRobotId(@Param("robotId") String robotId, @Param("userId") String userId);
    List<UserRobotVo> findByRobotList( @Param("userId") String userId);

    //findByRobotList
}
